package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_refund_wx_report")
public class OrderRefundWxReport extends Model<OrderRefundWxReport> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rid", type = IdType.ASSIGN_ID)
    private String rid;

    @TableField("out_trade_no")
    private String outTradeNo;

    @TableField("total_fee")
    private BigDecimal totalFee;

    @TableField("settlement_total_fee")
    private BigDecimal settlementTotalFee;

    @TableField("fee_type")
    private String feeType;

    @TableField("cash_fee")
    private Integer cashFee;

    @TableField("refund_count")
    private Integer refundCount;

    @TableField("refund_id")
    private String refundId;

    @TableField("refund_channel")
    private String refundChannel;

    @TableField("settlement_refund_fee")
    private Integer settlementRefundFee;

    @TableField("coupon_type")
    private String couponType;

    @TableField("coupon_refund_fee")
    private Integer couponRefundFee;

    @TableField("coupon_refund_count")
    private Integer couponRefundCount;

    @TableField("coupon_refund_id")
    private String couponRefundId;

    @TableField("coupon_refund_fee_one")
    private Integer couponRefundFeeOne;

    @TableField("refund_status")
    private String refundStatus;

    @TableField("refund_account")
    private String refundAccount;

    @TableField("refund_no")
    private Integer refundNo;

    @TableField("order_id")
    private String orderId;

    public void freeData() {
        this.rid = null;
        this.outTradeNo = null;
        this.totalFee = null;
        this.settlementTotalFee = null;
        this.feeType = null;
        this.cashFee = null;
        this.refundCount = null;
        this.refundId = null;
        this.refundChannel = null;
        this.settlementRefundFee = null;
        this.couponType = null;
        this.couponRefundFee = null;
        this.couponRefundCount = null;
        this.couponRefundId = null;
        this.couponRefundFeeOne = null;
        this.refundStatus = null;
        this.refundAccount = null;
        this.refundNo = null;
        this.orderId = null;
    }

}
